<template>
 <div>
  <h1>vip</h1>
  <img :src="userInfo.data.avatar" />
 </div>
</template>
<script>
import { mapGetters } from 'vuex'
export default {
  name: 'vip',
  computed: {
    ...mapGetters(['userInfo'])
  },
  mounted() {
    console.log(this.userInfo, '用户信息')
  },
  watch: {
    userInfo(v) {
      console.log('v', v)
    }
  }
}
</script>
